package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * @author shiqiang
 * @version 1.0
 * @date 2022/4/9 15:27
 */
@Data
public class YddUserData implements Serializable {
    /**
     * 用户数据id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 文章表id
     */
    @TableField("article_id")
    private Integer articleId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 1表示收藏,2表示点赞
     */
    private Integer type;
}
